package com.zqq.user.service.impl

import com.zqq.baselibrary.ext.convert
import com.zqq.user.service.UploadService
import com.zqq.user.service.respository.UploadRepository
import rx.Observable
import javax.inject.Inject

/**
 * 上传业务实现类
 * wc
 * @author zqq on 2018/7/30
 */
class UploadServiceImpl @Inject constructor() : UploadService {

    @Inject
    lateinit var repository: UploadRepository


    //获取上传凭证
    override fun getUploadToken(): Observable<String> {
        return repository.getUploadToken()
                .convert()
    }

}